﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Zavand.Web.Mvc.Manana.Framework;

namespace Zavand.Web.Mvc.Manana.SampleWebsite.Common.ExternalRoutes
{
    public class GoogleSearchRoute : BaseRoute
    {
        public string SearchText { get; set; }
        public GoogleSearchRoute()
        {
            SetDomain("google.com");
            SetProtocol(UrlProtocol.Http);
        }
        public override string GetUrl()
        {
            return "?q={SearchText}";
        }
        public override void FollowContext(BaseRoute r)
        {
            Locale = null;
        }
        public override string GetName()
        {
            return "GoogleSearch";
        }
    }
}